package com.sausageking.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sausageking.shared.Merchant;
import com.sausageking.shared.YearPassCodes;

public interface MerchantServiceAsync {
  void insert(Merchant merchant, AsyncCallback<Merchant> callback);
  void update(Merchant merchant, AsyncCallback<Merchant> callback);
  void getByEmail(String email, AsyncCallback<Merchant> callback);
  void getById(Long id, AsyncCallback<Merchant> callback);
  void getPassCodeBook(String merchant, int year,
      AsyncCallback<YearPassCodes> callback);
}
